#ifndef __LINUX_TTY_H__
#define __LINUX_TTY_H__

#include "linux/termios.h"

struct tty_struct {
  int magic;
  struct tty_driver* driver;
  int index;

  char name[64];
  int  pgrp;
  int  session;
  u32 flags;
  int count;
  struct winsize winsize;
};

#define TTY_MAGIC 0x5401

extern void console_init(void);
extern char* console_name(struct tty_struct* tty, char* buf);



#endif // __LINUX_TTY_H__
